package edu.hunau.cxb19.oop.class18;

import org.junit.Test;

/**
 *
 * @author hb
 *
 *         2020-03-19 14:47:29
 */
public class VarLengthTest {
	@Test
	public void call() {
		show();
		show("abc");
		show("abc", "123", "234");
		show(new String[] { "ab", "cd", "ef" });

	}

	/**
	 * @param datas 标识一个可变长的参数
	 */
	public void show(String... datas) {
		System.out.println(datas);
		System.out.println(datas.length);
	}
 

	public void info(int a, String str, int... datas) {
	}
}
